﻿<%@ Register TagPrefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>

<%@ Page Language="C#" DynamicMasterPageFile="~masterurl/default.master" EnableViewState="false" EnableEventValidation="false" Inherits="Microsoft.SharePoint.WebControls.LayoutsPageBase" %>

<asp:Content ID="PageHead" ContentPlaceHolderID="PlaceHolderAdditionalPageHead" runat="server">
    <link rel="stylesheet" href="EnhancedNew.css" type="text/css" />
    <script src="SP.UI.Dialog.js" type="text/javascript"></script>
</asp:Content>

<asp:Content ID="Main" ContentPlaceHolderID="PlaceHolderMain" runat="server">
    <asp:ObjectDataSource runat="server"
        ID="ContentTypesSource"
        DataObjectTypeName="LV.EnhancedNew.Controls.ContentType"
        TypeName="LV.EnhancedNew.Controls.ContentTypeSource, $SharePoint.Project.AssemblyFullName$"
        SelectMethod="GetAllListContentTypes">
        <SelectParameters>
            <asp:QueryStringParameter QueryStringField="ListId" Name="listId" DefaultValue="" Direction="Input" Type="String" />
            <asp:QueryStringParameter QueryStringField="RootFolder" Name="rootFolder" DefaultValue="" Direction="Input" Type="String" />
        </SelectParameters>
    </asp:ObjectDataSource>
    <asp:ListView runat="server" DataSourceID="ContentTypesSource">
                    <LayoutTemplate>
                        <ul class="ImmersiveNew-ContentTypesList">
                            <asp:PlaceHolder runat="server" ID="itemPlaceholder" />
                        </ul>
                    </LayoutTemplate>
                    <ItemTemplate>
                        <li class="ImmersiveNew-ContentTypeItem ms-cui-ctl-menu" onclick="<%#Eval("NewDocumentScript") %>" title='<%#Eval("Description") %>'>
                            <img src='<%#Eval("Icon32Url") %>' />
                            <div>
                                <asp:Label ID="Label2" runat="server" Text='<%#Eval("Name") %>' CssClass="ImmersiveNew-ContentTypeItem-Title" /><br />
                                <asp:Label ID="Label3" runat="server" Text='<%#Eval("Description") %>' CssClass="ImmersiveNew-ContentTypeItem-Description" />
                            </div>
                        </li>
                    </ItemTemplate>
                </asp:ListView>
</asp:Content>

<asp:Content ContentPlaceHolderID="PlaceHolderPageTitle" runat="server">
    <asp:Literal runat="server" Text="<%$Resources:core,cui_ButNewDocument%>" EnableViewState="False" />
</asp:Content>

<asp:Content ID="PageTitleInTitleArea" ContentPlaceHolderID="PlaceHolderPageTitleInTitleArea" runat="server" />
